package com.dhcc.android.base.common.bean;

import java.io.Serializable;

/**
 * 键值Bean
 * 
 * @author pengling
 * @date 2014-9-2
 */
public class KeyValueBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String key;
	private String value;
	private String foreignKey;// 外键key，用于联动
	private int type;// 键值类型
	private String fieldset;// 键值类型

	public String getForeignKey() {
		return foreignKey;
	}

	public void setForeignKey(String foreignKey) {
		this.foreignKey = foreignKey;
	}

	public String getKey() {
		return key;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public KeyValueBean(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public KeyValueBean(String key, String value, String fieldset) {
	    this.key = key;
	    this.value = value;
	    this.fieldset = fieldset;
	}

	public KeyValueBean(String key, String value, String foreignKey, int type) {
		this.key = key;
		this.value = value;
		this.foreignKey = foreignKey;
		this.type = type;
	}

	public String getFieldset() {
		return fieldset;
	}

	public void setFieldset(String fieldset) {
		this.fieldset = fieldset;
	}

	public KeyValueBean() {

	}
}
